home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2006 December / PCWDEC06.iso / Software / Trial / Paint Shop Pro XI / Data1.cab / _FF28CD52B67D4201B67EE2058F796FC1 < prev    next >
Encoding:
Text File  |  2006-08-04  |  5.2 KB  |  148 lines

  1. from PSPApp import *
  2. import PSPUtils
  3.  
  4. def ScriptProperties():
  5.     return {
  6.         'Author': 'Angela M. Cable',
  7.         'Copyright': '2002, for freeware distribution only',
  8.         'Description': "A B&W pencil effect",
  9.         'Host': 'Paint Shop Pro',
  10.         'Host Version': '8.00'
  11.         }
  12.  
  13. def Do(Environment):
  14.     if not PSPUtils.IsTrueColor(Environment, App.TargetDocument):
  15.         # IncreaseColorsTo16Million
  16.         App.Do( Environment, 'IncreaseColorsTo16Million', {
  17.             'GeneralSettings': {
  18.                 'ExecutionMode': App.Constants.ExecutionMode.Silent, 
  19.                 'AutoActionMode': App.Constants.AutoActionMode.Match
  20.                 }
  21.             })
  22.  
  23.     App.Do( Environment, 'LayerDuplicate', {
  24.             'GeneralSettings': {
  25.                 'ExecutionMode': App.Constants.ExecutionMode.Default
  26.                 }
  27.             })
  28.  
  29.     App.Do( Environment, 'NegativeImage', {
  30.             'GeneralSettings': {
  31.                 'ExecutionMode': App.Constants.ExecutionMode.Default
  32.                 }
  33.             })
  34.  
  35.     App.Do( Environment, 'LayerProperties', {
  36.             'General': {
  37.                 'Opacity': None, 
  38.                 'Name': None, 
  39.                 'IsVisible': None, 
  40.                 'IsTransparencyLocked': None, 
  41.                 'LinkSet': None, 
  42.                 'UseHighlight': None, 
  43.                 'PaletteHighlightColor': None, 
  44.                 'GroupLink': None, 
  45.                 'BlendMode': App.Constants.BlendMode.Dodge
  46.                 }, 
  47.             'BlendRanges': None, 
  48.             'Path': (0,0,[],App.Constants.Boolean.false), 
  49.             'BrightnessContrast': None, 
  50.             'ChannelMixer': None, 
  51.             'ColorBalance': None, 
  52.             'CurveParams': None, 
  53.             'HSL': None, 
  54.             'Threshold': None, 
  55.             'Levels': None, 
  56.             'Posterize': None, 
  57.             'Mask': None, 
  58.             'GeneralSettings': {
  59.                 'ExecutionMode': App.Constants.ExecutionMode.Silent, 
  60.                 'PreviewVisible': App.Constants.Boolean.true, 
  61.                 'AutoProof': App.Constants.Boolean.false
  62.                 }
  63.             })
  64.  
  65.     App.Do( Environment, 'GaussianBlur', {
  66.             'Radius': 7.000, 
  67.             'GeneralSettings': {
  68.                 'ExecutionMode': App.Constants.ExecutionMode.Silent, 
  69.                 'PreviewVisible': App.Constants.Boolean.true, 
  70.                 'AutoProof': App.Constants.Boolean.false
  71.                 }
  72.             })
  73.  
  74.     App.Do( Environment, 'LayerDuplicate', {
  75.             'GeneralSettings': {
  76.                 'ExecutionMode': App.Constants.ExecutionMode.Default
  77.                 }
  78.             })
  79.  
  80.     App.Do( Environment, 'ColorAdjustHSL', {
  81.             'HSL': {
  82.                 'Colorize': App.Constants.Boolean.false, 
  83.                 'Master': (0,-100,0), 
  84.                 'MasterColorize': (8,25,0), 
  85.                 'Red': (0,0,0,315,345,15,45), 
  86.                 'Green': (0,0,0,75,105,135,165), 
  87.                 'Blue': (0,0,0,195,225,255,285), 
  88.                 'Cyan': (0,0,0,135,165,195,225), 
  89.                 'Magenta': (0,0,0,255,285,315,345), 
  90.                 'Yellow': (0,0,0,15,45,75,105)
  91.                 }, 
  92.             'GeneralSettings': {
  93.                 'ExecutionMode': App.Constants.ExecutionMode.Silent, 
  94.                 'PreviewVisible': App.Constants.Boolean.true, 
  95.                 'AutoProof': App.Constants.Boolean.false
  96.                 }
  97.             })
  98.  
  99.     App.Do( Environment, 'LayerProperties', {
  100.             'General': {
  101.                 'Opacity': None, 
  102.                 'Name': None, 
  103.                 'IsVisible': None, 
  104.                 'IsTransparencyLocked': None, 
  105.                 'LinkSet': None, 
  106.                 'UseHighlight': None, 
  107.                 'PaletteHighlightColor': None, 
  108.                 'GroupLink': None, 
  109.                 'BlendMode': App.Constants.BlendMode.TrueColor
  110.                 }, 
  111.             'BlendRanges': None, 
  112.             'Path': (0,0,[],App.Constants.Boolean.false), 
  113.             'BrightnessContrast': None, 
  114.             'ChannelMixer': None, 
  115.             'ColorBalance': None, 
  116.             'CurveParams': None, 
  117.             'HSL': None, 
  118.             'Threshold': None, 
  119.             'Levels': None, 
  120.             'Posterize': None, 
  121.             'Mask': None, 
  122.             'GeneralSettings': {
  123.                 'ExecutionMode': App.Constants.ExecutionMode.Silent, 
  124.                 'PreviewVisible': App.Constants.Boolean.true, 
  125.                 'AutoProof': App.Constants.Boolean.false
  126.                 }
  127.             })
  128.  
  129.     App.Do( Environment, 'SelectLayer', {
  130.             'Path': (0,-2,[],App.Constants.Boolean.false), 
  131.             'GeneralSettings': {
  132.                 'ExecutionMode': App.Constants.ExecutionMode.Silent
  133.                 }
  134.             })
  135.  
  136.     App.Do( Environment, 'EnhanceEdgesMore', {
  137.             'GeneralSettings': {
  138.                 'ExecutionMode': App.Constants.ExecutionMode.Default
  139.                 }
  140.             })
  141.  
  142.     App.Do( Environment, 'Sharpen', {
  143.             'GeneralSettings': {
  144.                 'ExecutionMode': App.Constants.ExecutionMode.Default
  145.                 }
  146.             })
  147.  
  148.